package com.zhhq;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;

/**
 * Created by leesky on 2017/5/12.
 */
@SpringBootApplication
public class Application extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(Application.class);
    }
    /**
     * 日志服务
     */
    private static Logger logger = LoggerFactory.getLogger (Application.class);

    public static void main(String[] args) {
        logger.info("start");
        SpringApplication.run (Application.class, args);
    }
}
